


from rest_framework import serializers

from apps.goods.models import GoodsVisitCount

####################商品分类访问量统计序列化器################
class GoodCountSerializer(serializers.ModelSerializer):
    category = serializers.StringRelatedField(read_only=True)

    class Meta:

        model = GoodsVisitCount
        fields = ("category","count")

